//
//  WSOrderBigModel.h
//  FD
//
//  Created by xiaofang wang on 2018/11/1.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WSOrderBigModel : NSObject
/**1.总价 NSNumber*/
@property (nonatomic, strong) NSNumber *totalAmount;
/**2.优惠券金额 NSNumber*/
@property (nonatomic, strong) NSNumber *couponAmount;
/**3.运费*/
@property (nonatomic, strong) NSNumber *freightAmount;
/**4.新增积分*/
@property (nonatomic, strong) NSNumber *bonusAmount;
/**5.实际付款金额*/
@property (nonatomic, strong) NSNumber *actualAmount;
/**7.订单号 “确认订单”不需要传 ”再来一单“需要传*/
@property (nonatomic, copy) NSString *orderId;
/**8.用户的经度*/
@property (nonatomic, strong) NSNumber *longitude;
/**w8-2纬度*/
@property (nonatomic, strong) NSNumber *latitude;
/**8-3用户的收货区域详细地址*/
@property (nonatomic, copy) NSString *detail;

/**9.用户的电话 打电话的时候要用到*/
@property (nonatomic, copy) NSString *phone;
/**10.商家的电话*/
@property (nonatomic, copy) NSString *shopPhone;
/**11.店铺名字*/
@property (nonatomic, copy) NSString *shopName;
/**12-1.商家纬度*/
@property (nonatomic,strong) NSNumber *shopLat;
/**12-2.商家经度*/
@property (nonatomic, strong) NSNumber *shopLng;

/**10.订单状态 NSNumer 单独有一个接口用来请求订单状态
 待付款、待评价订单详情
    0    显示4个按钮 不处理状态
    1,2,3,4  需要单独调另外一个接口 /user/order/status 才能获取获取订单状态
    1~4 固定传 [1,2,3,4]
 
 退款/售后 订单详情
    6,7,8
    6~8 固定传递 [6,7,8]
 */
@property (nonatomic, strong) NSNumber *status;

/**6.已经优惠，单独计算 自己算的  totalAmount-actualAmount  */
@property (nonatomic, copy) NSString *alreadyYouHuiStr;
/**7.支付方式  当paymentType=1时，不显示“支付”按钮  */
@property (nonatomic, strong) NSNumber *paymentType;

@end

NS_ASSUME_NONNULL_END
//服务返回数据参考
/**
 {"event":"SUCCESS","data":{"totalAmount":173.00,"couponAmount":0.00,"shop":{"address":"Edenhall, Model Farm Rd, Cork, Ireland","phone":"021 494 7888","name":"Edenhall Branch","id":1},"freightAmount":5.00,"bonusAmount":17.3,"actualAmount":173.00,"goodsList":[{"quantity":1,"price":65.00,"setMealList":[],"id":14,"title":"小龙虾卷辣堡S双人餐"},{"quantity":1,"price":38.00,"setMealList":[],"id":18,"title":"塔可薯条饮品餐"},{"quantity":1,"price":65.00,"setMealList":[],"id":17,"title":"塔可奥堡双人餐S"}],"userShippingAddress":{"consignee":"asd","phone":"1522568556","sex":0,"latitude":51.886047999999995,"detail":"asdasd","region":"Rossa Avenue, Bishopstown, Cork, T12 P928爱尔兰","longitude":-8.533569},"remark":"","id":"201810170000038","status":0,"paymentType":0},"describe":""}
 */
